<template>
  <div>
    <h1>count</h1>
    <button @click="showAttrs($attrs)">按钮</button>
  </div>
</template>

<script lang="ts">
  import { defineComponent } from "vue";
  export default defineComponent({
    name: "Count",
  });
</script>
<script lang="ts" setup>
  defineProps<{
    a: number;
  }>();
  const showAttrs = (attrs: any) => {
    console.log(attrs);
  };
</script>

<style lang="scss" scoped></style>
